package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@ApiModel(description = "试卷类")
@Accessors(chain = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("exam_paper")
public class Paper {

    @ApiModelProperty(value = "试卷ID")
    @TableId(value="paper_id",type= IdType.ASSIGN_ID)
    private String paperId;

    @ApiModelProperty(value = "年级")
    @TableField("paper_grade")
    private String PaperGrade;

    @ApiModelProperty(value = "科目")
    @TableField("paper_subject")
    private String paperSubject;

    @ApiModelProperty(value = "试卷名")
    @TableField("paper_name")
    private String paperName;

    @ApiModelProperty(value = "题目 ids")
    @TableField("question_ids")
    private String questionIds;

    @ApiModelProperty(value = "考试时间")
    @TableField("exam_time")
    private Integer examTime;

    @ApiModelProperty(value = "总分")
    @TableField("paper_total")
    private Integer paperTotal;
}
